﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UtilZ.Dotnet.Ex.DataDictionaryValueDescription
{
    /// <summary>
    /// 数据字典项特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Field)]
    public class DataDictionaryItemAttribute : Attribute
    {
        private string _name;
        /// <summary>
        /// 名称
        /// </summary>
        public string Name
        {
            get { return _name; }
        }

        private object _value;
        /// <summary>
        /// 含义值
        /// </summary>
        public object Value
        {
            get
            {
                return _value;
            }
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="name">名称</param>
        /// <param name="value">含义值</param>
        public DataDictionaryItemAttribute(string name, object value)
            : base()
        {
            this._name = name;
            this._value = value;
        }

    }
}
